<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片边框</title>
  <style type="text/css">
    p{
      width: 362px;
      height: 362px;
      border-style: solid;
      border-image-source: url("../images/timg.jpg");
      border-image-slice:33%;
      border-image-width: 40px;
      border-image-outset: 0;
      border-image-repeat: repeat;
    }
  </style>
</head>
<body>
<p></p>
</body>
</html>